﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.Model;

namespace Wq.ManagerService.Entities
{
    /// <summary>
	/// 操作日志
	/// </summary>
	[TenantAttribute("manager")]
    [SugarTable("Wq_OperationLog")]
    public class OperationLogInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
        /// <summary>
        /// 发生时间
        /// </summary>
        [SugarColumn(ColumnDescription = "发生时间")]
        public DateTime Time { get; set; }
        /// <summary>
        /// 模块
        /// </summary>
        [SugarColumn(ColumnDescription = "模块")]
        public int Module { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        [SugarColumn(ColumnDescription = "操作人")]
        public long Operator { get; set; }
        /// <summary>
        /// 操作人名称
        /// </summary>
        [SugarColumn(ColumnDescription = "操作人名称")]
        public string OperatorName { get; set; }
        /// <summary>
        /// IP
        /// </summary>
        [SugarColumn(ColumnDescription = "IP")]
        public string OperatorAddress { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        [SugarColumn(ColumnDescription = "消息")]
        public string Message { get; set; }
    }
}
